home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Compendium Deluxe 2
/
LSD and 17bit Compendium Deluxe - Volume II.iso
/
a
/
prog
/
misc
/
xes120.lha
/
XES
/
REXX
/
Compile.xdme
< prev
next >
Wrap
Text File
|
1994-11-09
|
447b
|
23 lines
/* Compile.xdme */
options results
address 'XDME.1'
'rxresult $filename'
F = result
D = lastpos(".", F)
N = '"' || delstr(F, D) || '"'
Ext = delstr(F, 1, D)
F = '"' || F || '"'
select
when Ext = "c" then C = "bin:gcc" F "-Wall -o" N
when Ext = "cc" then C = "bin:gcc" F "-Wall -lg++ -o" N
when Ext = "e" then C = "EC >t:err" N
otherwise exit
end
C = '(' || C || ')'
'title' C
'execute' C
'title (Compiling finished or halted.)'